Skip to content

Log error and result #2

@markphd

Description

@markphd

I've been using this app for a while and one of the issue I always face when moving to a new workstation is the inability to identify why it's not working. I had to do screen recording and pause the video just to read some important details during upload.

I made a little improvement by adding this in script:
echo → Activity: date >> ~/logs.txt # Logs Date/Timestamp
git push origin gh-pages >> ~/logs.txt 2>&1 # Logs Result

Sample log:

→ Activity: Sun Oct 4 14:39:41 GST 2015
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
→ Activity: Sun Oct 4 14:48:15 GST 2015
To https://github.com/markphd/scaling-bugfixes.git
0066735..b298684 gh-pages -> gh-pages
→ Activity: Sun Oct 4 14:52:45 GST 2015
Everything up-to-date
→ Activity: Sun Oct 11 08:52:56 GST 2015
fatal: Not a git repository (or any of the parent directories): .git
→ Activity: Sun Oct 11 08:52:57 GST 2015
fatal: Not a git repository (or any of the parent directories): .git
→ Activity: Sun Oct 11 08:54:40 GST 2015
To git@github.com:markphd/scaling-bugfixes.git
b298684..10dff5f gh-pages -> gh-pages
→ Activity: Sun Oct 11 08:55:10 GST 2015
To git@github.com:markphd/scaling-bugfixes.git
10dff5f..efc91eb gh-pages -> gh-pages

I know its not the best solution but it helps a lot. 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions